package com.hrm.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class TransferRecord {
    private Integer transferRecordId;

    private Integer employeeId;

    private String oldDepartment;

    private String newDepartment;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date transferTime;

    public Integer getTransferRecordId() {
        return transferRecordId;
    }

    public void setTransferRecordId(Integer transferRecordId) {
        this.transferRecordId = transferRecordId;
    }

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    public String getOldDepartment() {
        return oldDepartment;
    }

    public void setOldDepartment(String oldDepartment) {
        this.oldDepartment = oldDepartment == null ? null : oldDepartment.trim();
    }

    public String getNewDepartment() {
        return newDepartment;
    }

    public void setNewDepartment(String newDepartment) {
        this.newDepartment = newDepartment == null ? null : newDepartment.trim();
    }

    public Date getTransferTime() {
        return transferTime;
    }

    public void setTransferTime(Date transferTime) {
        this.transferTime = transferTime;
    }
}